var xmlPanel =new Ext.Panel({
	id : 'xml-panel',
	layout : 'border',
	title:'xml模型文件',
	defaults : {
		collapsible : true,
		bodyStyle : 'padding:15px'
	},
	items : [{
				xtype:'textarea',
				id:'textxml',
				region : 'center',
				autoScroll : true,
				
				border : true
				}]
}) ;
var xmldata;
var xmlName;
var test;
var lineChange="\n";
var change;
var finalformat;
function showXmlContent(cid){               //add pathName
	
	Ext.Ajax.request({
	method:'POST',
	url:'showXmlContentAction',
	params : {		
				pathName:cid
			  },
	success : function(request) {
	
	xmldata = request.responseText;
//	Ext.decode(xmldata);
//	xmldata = eval("("+xmldata+")");
//	test=xmldata.xmlContent
//	alert(lineChange);
//	xmldata.replaceAll("xmlContent","a");

	test=xmldata.replace(/lineChange/g,lineChange);
	change=test.replace(/slash/g,"/");
	finalformat=change.replace(/quotation/g,"\"");
	finalformat=finalformat.replace("{"+"\""+"xmlContent"+"\""+":"+"\"","");
	finalformat=finalformat.replace("\""+"}","");

	Ext.getCmp('textxml').setValue(finalformat);

}
	
	});

	// Ext.getCmp('content-panel').layout.setActiveItem('xml-panel');
}



//xmlwindow
var xmlwindow=new Ext.Window({
	title:'文件内容',
	width : 500,
	height : 400,
	resizable : true,
	autoScroll:true,
	layout : 'fit',
	closeAction: 'hide',
	items:[
	    new Ext.Panel({
	    	items:[{
				xtype:'textarea',
				id:'xmltextarea',
				region : 'center',
				autoScroll : true,				
				border : true
			}]
	    })
	]
});